package gamecontrol;

import gameobjects.Element;

/**
 * Keep an object of the game, and his position into the current board. 
 * @author quique
 */
public class Box {
        
        /**
         * Keeps the x position of the box into the board. 
         */
	private int positionX;
	
        /**
         * Keeps the y position of the box into the board. 
         */
	private int positionY;
	
        /**
         * Keeps the object of the game.
         */
	private Element element;
	
        /**
         * 
         * @return the actual instance.
         */
	public Box get() {
		return this;
	}
	
        /**
         * 
         * @return the x position of the object into the board.
         */
	public int getPositionX() {
		return this.positionX;
	}
	
        /**
         * 
         * @return the y position of the object into the board.
         */
	public int getPositionY() {
		return this.positionY;
	}
	
        /**
         * Sets the position of the box.
         * @param positionX
         * @param positionY
         */
	public void setPosition(int positionX, int positionY) {
            this.positionX = positionX;
            this.positionY = positionY;
	}
	
        /**
         * 
         * @return the element of the game the box contains it.
         */
	public Element getElement() {
            return this.element;
	}
	
        /**
         * Sets the element of the game the box contains it
         * @param element
         */
	public void setElement(Element element) {
            this.element = element;
	}
	 
}
 
